home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Utilities / Interfaces / ODNew.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  695 b   |  30 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ODNew.h
  3.  
  4.     Contains:    Inline versions of operator new and operator delete for OpenDoc
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     
  11. */
  12.  
  13. #ifndef _ODNEW_
  14. #define _ODNEW_
  15.  
  16. #include <StdDef.h>
  17.  
  18. #ifndef _ODMEMORY_
  19. #include "ODMemory.h"
  20. #endif
  21.  
  22. //==============================================================================
  23. // Global function declarations
  24. //==============================================================================
  25.  
  26. void* operator new(size_t size, ODMemoryHeapID);        // from a specific heap
  27. void* operator new(size_t);                            // from the client heap
  28. void operator delete(void*);                        // return memory to pool 
  29.  
  30. #endif